<?php
/**
 * Created by PhpStorm.
 * User: huangj11
 * Date: 2021/1/4
 * Time: 10:13
 */

namespace business\elasticsearch\types;


class BigDataSupplierMapConfigType
{
    /**
     * mapping配置
     * @return array
     */
    public static function mapConfig()
    {
        return [
            'properties' => [
                "boardCout" => [
                    "type" => "long"
                ],
                'boardList' => [
                    "type" => "text"
                ],
                "companySupplierId" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "cooperationDevelopersNumber" => [
                    "type" => "long"
                ],
                "hasProduct" => [
                    "type" => "long"
                ],
                "hasRegulatory" => [
                    "type" => "long"
                ],
                "hasRichcase" => [
                    "type" => "long"
                ],
                "indexCreatedTime" => [
                    'type' => 'date',
                    'format' => 'yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis'
                ],
                "linkNumber" => [
                    "type" => "long"
                ],
                'matchedProjectName' => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                'matchedProjectNumber' => [
                    "type" => "long",
                ],
                'matchedTopDeveloper' => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                'matchedTopDeveloperNumber' => [
                    "type" => "long",
                ],
                'matchedTopBusinessArea' => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                'matchedTopBusinessAreaNumber' => [
                    "type" => "long",
                ],
                "memberNumber" => [
                    "type" => "long"
                ],
                "pointBusiness" => [
                    "type" => "long"
                ],
                "pointCase" => [
                    "type" => "long"
                ],
                "pointContact" => [
                    "type" => "long"
                ],
                "pointCooperative" => [
                    "type" => "long"
                ],
                "pointQualifications" => [
                    "type" => "long"
                ],
                "qualificationNumber" => [
                    "type" => "long"
                ],
                "registCapi" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "registCapiRmb" => [
                    "type" => "long"
                ],
                'isPreciseMatch' => [
                    'type' => 'boolean'
                ],
                "supplierBusinessCode1" => [
                    "type" => "long"
                ],
                "supplierBusinessCode2" => [
                    "type" => "long"
                ],
                "supplierBusinessCode3" => [
                    "type" => "long"
                ],
                "supplierBusinessName" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "supplierBusinessName1" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "supplierBusinessName2" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "supplierBusinessName3" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "supplierCityCode" => [
                    "type" => "long"
                ],
                "supplierCityName" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "supplierId" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "supplierName" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ],
                        'suggest' => [
                            'type' => 'completion'
                        ]
                    ]
                ],
                "supplierProjectCase" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "supplierProjectCaseNumber" => [
                    "type" => "long"
                ],
                "supplierProvinceCode" => [
                    "type" => "long"
                ],
                "supplierProvinceName" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "supplierIntroduce" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "supplierQualificationCode" => [
                    "type" => "text",
                ],
                "supplierQualificationName" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "supplierLocationName" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "supplierScope" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "supplierTag" => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                'topBusinessArea' => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                'topDeveloper' => [
                    "type" => "text",
                    "fields" => [
                        "keyword" => [
                            "type" => "keyword",
                            "ignore_above" => 256
                        ]
                    ]
                ],
                "update_timestamp" => [
                    'type' => 'date',
                    'format' => 'yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis'
                ]
            ]
        ];
    }
}